package com.volkanic.controller.menu;

import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.volkanic.controller.MainController;
import com.volkanic.controller.GameController;

/**
 * Created by Lucas on 24/07/2014.
 */
public class MenuController extends MainController {

    /**
     * Create a new instance of the class SharedController
     *
     * @param controller the controller to change the sttae of the game
     * @param nextState the nextStage design by the input
     */
    public MenuController(GameController controller, GameController.StageState nextState) {
        super(controller, nextState);
    }

    @Override
    public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
        _controller.changeStateTo(_nextState);
        return true;
    }
}
